package com.zyj.eps.mapper;

import com.zyj.eps.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author super
 * @date 2022/4/3 17:35
 */
public interface ManagerMapper {
    Manager ManagerLogin(@Param("mname")String mname, @Param("password")String password);
    Manager getManagerById(int mid);
    int updateManagerInfo(Manager manager);
    int updateUserHealth(User user);
    List<User> searchUserById(@Param("uid") int id);
    List<User> searchUserByName(@Param("uname") String info);
    List<User> searchUserByHealth(@Param("health") String info);
    int updateGoodsNum(@Param("goodsid") int goodsid,@Param("num") int num);
    List<Record> getAllRecord();
    List<Record> searchRecordByUser(@Param("uname") String uname);
    List<Vaccine> ManagerAllVaccine();
    int deleteVaccine(@Param("vid") int vid);
    int addVaccine(Vaccine vaccine);
    int insertNews(News news);
    int deleteNews(int newsid);
    List<Manager> getAllManager();
    int addManager(Manager manager);
    int deleteManagerById(int mid);
    int insertInform(Inform inform);
    int deleteKnowledgeById(int id);
    int addKnowLedge(Knowledge knowledge);
}
